<template>
  <div class="Wrapper">
    <div class="bg">
      <div class="wrapperLeft">
        会员服务
        <div class="ImgContainer">
          <img src="../assets/serve.png" alt="" />
          <div class="textContainer">
            2024机械工业行业协会会员服务大会在京举行
            <div class="content">
              2024机械工业行业协会会员服务大会在京举行2024机械工业行业协会会员服务大会在京举行2024机械工业行业协会会员服务大会在京举行2024机械工业行业协会会员服务大会在京举行2024机械工业行业协会会员服务大会在京举行
            </div>
            <div class="date">2024-07-19</div>
          </div>
        </div>
        <div class="textContainer" style="margin-top: 30px">
          <div v-for="item in textArr" :key="item.text" class="Item">
            <div class="text">{{ item.text }}</div>
            <div>{{ item.date }}</div>
          </div>
        </div>
      </div>
      <div class="wrapperRight">
        会员工作
        <div class="timeline">
          <el-timeline style="max-width: 600px">
            <el-timeline-item
              v-for="(activity, index) in activities"
              :key="index"
              :timestamp="activity.content"
            >
              {{ activity.timestamp }}
            </el-timeline-item>
          </el-timeline>
        </div>
      </div>
    </div>
  </div>
</template>
    
    <script setup lang="ts">
import { reactive } from 'vue'
const textArr = reactive([
  { text: '央视报道,今年上半年机械工业运行态势良好', date: '2024-07-19' },
  { text: '央视报道,今年上半年机械工业运行态势良好', date: '2024-07-19' },
  { text: '央视报道,今年上半年机械工业运行态势良好', date: '2024-07-19' },
  { text: '央视报道,今年上半年机械工业运行态势良好', date: '2024-07-19' },
  { text: '央视报道,今年上半年机械工业运行态势良好', date: '2024-07-19' },
  { text: '央视报道,今年上半年机械工业运行态势良好', date: '2024-07-19' }
])
const activities = reactive([
  {
    content: '关于2024年度会员大会的报名通知',
    timestamp: '2024-07-15'
  },
  {
    content: '关于2024年度会员大会的报名通知',
    timestamp: '2024-07-15'
  },
  {
    content: '关于2024年度会员大会的报名通知',
    timestamp: '2024-07-15'
  },
  {
    content: '关于2024年度会员大会的报名通知',
    timestamp: '2024-07-15'
  },
  {
    content: '关于2024年度会员大会的报名通知',
    timestamp: '2024-07-15'
  },
  {
    content: '关于2024年度会员大会的报名通知',
    timestamp: '2024-07-15'
  }
])
</script>
    <style lang="less" scoped>
.Wrapper {
  width: 100%;
  background-color: #ffffff;
  .bg {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
  }
  .wrapperLeft {
    padding: 40px 0;
    width: 55%;
    height: 100%;
    .ImgContainer {
      display: flex;
      margin-top: 40px;
      img {
        width: 200px;
      }
      .textContainer {
        display: flex;
        flex-direction: column;
        font-size: 16px;
        margin-left: 20px;
        .content {
          font-size: 12px;
          color: #9c9c9c;
          margin-bottom: 40px;
        }
        .date {
          font-size: 12px;
          color: #aeaeae;
        }
      }
    }
    .textContainer {
      .Item {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        font-size: 14px;
        color: #9c9c9c;
      }
      .text {
        color: #3d3d3d;
      }
    }
  }
  .wrapperRight {
    padding: 40px 0;
    width: 35%;
    height: 100%;
    .timeline {
      margin-top: 40px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}
</style>